package coreservlets;

import javax.servlet.http.Cookie;

public class LongLivedCookie extends Cookie {

	private static final long serialVersionUID = 1L;
	public static final int SECONDS_PER_YEAR = 60 * 60 * 24 * 365;

	public LongLivedCookie(String name, String value) {
		super(name, value);
		setMaxAge(SECONDS_PER_YEAR);
	}
}
